import Vue from 'vue'
import Router from 'vue-router'

import Home from '@/containers/Home'
import Login from '@/containers/Login'
import Song from '@/containers/Song'
import Listen from '@/containers/Listen'
import Chat from '@/containers/Chat'
import Travel from '@/containers/Travel'
import Interest from '@/containers/Interest'
import Photo from '@/containers/Photo'
import BlueberryPai from '@/containers/BlueberryPai'
import Community from '@/containers/Community'
import CreateGroup from '@/containers/Blueberry/CreateGroup'
import BlueberryDetails from '@/containers/Blueberry/BlueberryDetails'
import Register from "@/containers/Register"
import ListenDetails from "@/containers/ListenDetails"
import Release from "@/components/Release/Release"

Vue.use(Router)

export default new Router({
  linkExactActiveClass:"active",
  routes: [
    {
      path:'/',
      redirect:'/home'
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/song',
      component: Song,
      name:"Song"
    },
    {
      path: '/listen',
      component: Listen,
      name:"Listen"
    },
    {
      path:'/listendetails',
      component:ListenDetails,
      name:"ListenDetails"
    },
    {
      path: '/chat',
      component: Chat,
      name:"Chat"
    },
    {
      path: '/travel',
      component: Travel,
      name:"Travel"
    },
    {
      path: '/interest',
      component: Interest,
      name:"Interest"
    },
    {
      path: '/photo',
      component: Photo,
      name:"Photo"
    },
    {
      path: '/blueberryPai',
      component: BlueberryPai,
      name:"BlueberryPai"
    },
    {
      path:"/group",
      component:CreateGroup,
      name:"CreateGroup"
    },
    {
      path:"/details",
      component:BlueberryDetails,
      name:"BlueberryDetails"
    },
    {
      path: '/community',
      component: Community,
      name:"Community"
    },
    {
      path: '/login',
      component: Login,
      name:"Login"
    },
    {
      path: '/register',
      component: Register,
      name:"Register"
    },
    {
      path: '/release',
      component: Release,
      name:"Release"
    }
  ]
})
